package com.fz.Adapter;

import java.util.List;

import com.fz.test.R;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class Horadapter extends MyBaseAdaper {
	

	public Horadapter(Context context) {
		super(context);
	}

	@Override
	View getMyView(int arg0, View arg1, ViewGroup arg2) {
		ViewHolder holder;
		if(arg1==null){
			arg1=inflater.inflate(R.layout.horitem, null);
			holder=new ViewHolder(arg1);
			arg1.setTag(holder);
		}else{
			holder=(ViewHolder) arg1.getTag();
		}
		holder.text.setText(getItem(arg0).toString());
		return arg1;
	}
	class ViewHolder{
		
		private TextView text;
		public ViewHolder(View v) {
			super();
			text=(TextView) v.findViewById(R.id.text);
		}

	}

}
